package com.lazycat.backend.controller.shop;

import com.lazycat.backend.service.impl.shop.DeleteGoodServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class DeleteGoodController {
    @Autowired
    private DeleteGoodServiceImpl deleteGoodService;

    @PostMapping("shop/delete/")
    public void delete(@RequestBody Map<String, Object> hashMap) {
        System.out.println(hashMap);
        deleteGoodService.delete(hashMap);
    }
}
